<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<link href="../../css/demo.css" rel="stylesheet" type="text/css" />
<script src="../../js/boot.js" type="text/javascript"></script>
<script src="../../js/mini_common.js" type="text/javascript"></script>
<script src="../../js/order/order.js" type="text/javascript"></script>
</head>
<body>
	<h1>订单管理</h1>
	<div style="width:100%">
        <div class="mini-toolbar" style="border-bottom:0;padding:0px;">
            <table style="width:100%;">
                <tr>
                    <td style="white-space:nowrap;">
                        <input id="key" class="mini-textbox" emptyText="请输入查找关键字" style="width:200px;" onenter="onKeyEnter"/>   
                        <a class="mini-button" onclick="search()">查询</a>
                    </td>
                </tr>
            </table>           
        </div>
    </div>
	<div id="datagrid1" class="mini-datagrid" onshowrowdetail="onShowRowDetail"   showEmptyText="true" emptyText="没有订单数据" url="javascript:getRootPath()+'/rest/order/list'" style="width: 100%;" idField="id" allowResize="true" sizeList="[20,50,100]" pageSize="20">
		<div property="columns">
			<div type="expandcolumn" >#</div>
			<div name="action" headerAlign="center" align="center" renderer="onActionRenderer" cellStyle="padding:0;">操作</div>
			<div field="userId" visible="false"></div>
			<div field="orderId"  headerAlign="center" allowSort="true">订单号</div>
			<div field="userNickName"  headerAlign="center">用户昵称</div>
			<div field="userRealName"  headerAlign="center" >用户真实姓名</div>
			<div field="orderStatus"  headerAlign="center" allowSort="true">订单状态</div>
			<div field="orderPayStatus"   headerAlign="center" allowSort="true" renderer="">是否付款</div>
			<div field="orderItemnum"   headerAlign="center" allowSort="true" renderer="">商品总量</div>
			<div field="orderFinalAmount"   headerAlign="center" allowSort="true" renderer="">商品总价</div>
			<div field="orderPayment"   headerAlign="center" allowSort="true" renderer="">付款金额</div>
			<div field="createTime" headerAlign="center" allowSort="true" dateformat="yyyy-MM-dd HH:mm:ss">新增时间</div>
			<div field="createUser"   headerAlign="center" allowSort="true">操作人</div>
			<div field="updateTime"  headerAlign="center"  allowSort="true" dateformat="yyyy-MM-dd HH:mm:ss">更新时间</div>
			<div field="updateUser" headerAlign="center"  allowSort="true">更新人</div>
			<div field="disabledState"  headerAlign="center" allowSort="true" renderer ="onDataStatus">是否删除</div>
			<div field="orderIsDelivery" visible="false"></div>
			<div field="dtName" visible="false"></div>
			<div field="dtNum" visible="false"></div>
			<div field="orderShipName" visible="false"></div>
			<div field="orderShipArea" visible="false"></div>
			<div field="orderShipAddr" visible="false"></div>
			<div field="orderShipZip" visible="false"></div>
			<div field="orderShipTel" visible="false"></div>
			<div field="orderShipEmail" visible="false"></div>
			<div field="orderShipTime" visible="false"></div>
			<div field="orderShipMobile" visible="false"></div>
			<div field="orderIsTax" visible="false"></div>
			<div field="orderCostTax" visible="false"></div>
			<div field="orderTaxCompany" visible="false"></div>
			<div field="orderDiscount" visible="false"></div>
			<div field="userStatus" visible="false"></div>
			<div field="orderIp" visible="false"></div>
			<div field="orderMemo" visible="false"></div>
			<div field="orderCostItem" visible="false"></div>
		</div>
	</div>
	<div id="detailGrid_Form" style="display:none;">
		<div style="width:100%">
    </div>
        <div id="order_goods_grid" class="mini-datagrid"  showEmptyText="true" emptyText="本订单没有商品数据" style="width:100%;height:200px;" url="javascript:getRootPath()+'/rest/order/list_from_goods_item'">
            <div property="columns">
                <div field="goodsName" width="120" headerAlign="center" allowSort="true">商品名称 </div>                
                <div field="goodsBn" width="100" allowSort="true" align="center" headerAlign="center">商品编号</div>            
                <div field="orderCostItem" width="100" allowSort="true">商品总共花费金额</div>
                <div field="goodsPrice" width="100" allowSort="true">销售价</div>
                <div field="goodsAmount" width="100" allowSort="true">商品数量</div>
                <div field="goodsTypeName" width="100" allowSort="true">商品类型</div>
                <div field="orderItmeDlyStatus" width="100" allowSort="true">商品状态</div>

        </div>
	<div class="description">
		<h3>蓝鲸科技，科技引领潮流。</h3>
	</div>
	<script>
		mini.parse();
		var order_goods_grid = mini.get("order_goods_grid");
		var detailGrid_Form = document.getElementById("detailGrid_Form");
		var TuserID = getCookie("TuserID");
		if(TuserID == null || TuserID ==""){
			alert("您尚未登录，请登录。");
			window.location.href= getRootPath()+"../../pages/access/admin_login.html";
		}else{
			var grid = mini.get("datagrid1");
			var parms = {"userId":TuserID};
	        grid.load(parms);
		}
	</script>
</body>
</html>